import {
  ChromeFilled,
  CrownFilled,
  SmileFilled,
  TabletFilled,
} from '@ant-design/icons';

export default {
  route: {
    path: '/',
    routes: [
      {
        path: '/house/welcome',
        name: '欢迎',
        icon: <SmileFilled />,
      },
      {
        name: '客服',
        icon: <TabletFilled />,
        path: '/house/service',
        routes: [
          {
            path: '/house/service/info',
            name: '客服信息总览',
            icon: <CrownFilled />,
          },
          {
            path: '/house/service/list',
            name: '客服列表',
            icon: <CrownFilled />,
          },
          {
            path: '/house/service/imChat',
            name: 'im聊天框',
            icon: <CrownFilled />,
          },
          {
            path: '/house/service/answer',
            name: '会话管理',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/house/service/answer/visitor',
                name: '游客列表',
                icon: <CrownFilled />,
              },
              {
                path: '/house/service/answer/servicelog',
                name: '服务记录',
                icon: <CrownFilled />,
              },
              {
                path: '/house/service/answer/chat',
                name: '聊天记录',
                icon: <CrownFilled />,
              },
            ],
          },
        ],
      },
      {
        name: '楼盘',
        icon: <TabletFilled />,
        path: '/house/building',
        routes: [
          {
            path: '/house/building/developer',
            name: '开发商',
            icon: <CrownFilled />,
          },
          {
            path: '/house/building/buildingManager',
            name: '楼盘管理',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/house/building/buildingManager/buildingList',
                name: '楼盘列表',
                icon: <CrownFilled />,
              },
              {
                path: '/house/building/buildingManager/addbuilding',
                name: '添加楼盘',
                icon: <CrownFilled />,
              },
            ],
          },
          {
            path: '/house/building/group',
            name: '楼盘管理',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/house/building/group/groupList',
                name: '团购列表',
                icon: <CrownFilled />,
              },
              {
                path: '/house/building/group/addgroup',
                name: '添加团购',
                icon: <CrownFilled />,
              },
            ],
          },
        ],
      },
      {
        name: '出租/二手房',
        icon: <TabletFilled />,
        path: '/house/rentalHousing',
        routes: [
          {
            path: '/house/rentalHousing/Community',
            name: '小区管理',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/house/rentalHousing/Community/management',
                name: '小区管理',
                icon: <CrownFilled />,
              },
            ],
          },
          {
            path: '/house/rentalHousing/second',
            name: '二手房',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/house/rentalHousing/second/addhouse',
                name: '添加房源',
                icon: <CrownFilled />,
              },
              {
                path: '/house/rentalHousing/second/houseManagement',
                name: '房源管理',
                icon: <CrownFilled />,
              },
            ],
          },
          {
            path: '/house/rentalHousing/zu',
            name: '出租房',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/house/rentalHousing/zu/addhouse',
                name: '添加房源',
                icon: <CrownFilled />,
              },
              {
                path: '/house/rentalHousing/zu/houseManagement',
                name: '房源管理',
                icon: <CrownFilled />,
              },
            ],
          },
        ],
      },
      {
        name: '商业',
        icon: <TabletFilled />,
        path: '/house/business',
        routes: [
          {
            path: '/house/business/office',
            name: '写字楼',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/house/business/office/sale',
                name: '出售管理',
                icon: <CrownFilled />,
              },
              {
                path: '/house/business/office/rental',
                name: '出租管理',
                icon: <CrownFilled />,
              },
            ],
          },
          {
            path: '/house/business/shop',
            name: '商铺',
            icon: <CrownFilled />,
            routes: [
              {
                path: '/house/business/shop/sale',
                name: '出售管理',
                icon: <CrownFilled />,
              },
              {
                path: '/house/business/shop/rental',
                name: '出租管理',
                icon: <CrownFilled />,
              },
            ],
          },
        ],
      },
    ],
  },
  location: {
    pathname: '/',
  },
};
